import styled from "styled-components";
// 头部
export const TopCss = styled.div`
  .top {
    width: 100vw;
    height: 5vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    .lef {
      height: 70%;
      img {
        height: 100%;
      }
    }
    .rig {
      margin-right: 10px;
      height: 3vh;
      img {
        height: 100%;
      }
    }
  }
  .lunbo {
    width: 100vw;
    .pic {
      width: 90vw;
      margin-left: 5vw;
    }
  }
`;
// Tab 切换
export const Tabs = styled.div`
  background: #fff;
  margin-top: 20px;
  padding: 10px 0;
  .top {
    width: 100vw;
    display: flex;
    align-items: center;
    height: 6vh;
    text-align: center;
    overflow: auto;
    .span {
      padding: 3px 10px;
      flex-shrink: 0;
      margin: 0 10px;
    }
    .yanshi {
      border-radius: 20px;
      background: #009fe9;
      color: #fff;
    }
  }
  .cen {
    height: 25vh;
    background: #fff;
    display: flex;
    overflow: auto;
    .box {
      background: #fff;
      border: 1px solid #ddd;
      flex-shrink: 0;
      width: 33vw;
      border-radius: 20px;
      margin: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow: hidden;
      font-size: 12px;
      box-shadow: 0 0 10px #ddd;
      .top_p {
        background: red;
        width: 100%;
        text-align: center;
        font-size: 14px;
        color: #fff;
      }
      & > div {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        img {
          width: 80%;
        }
      }
      .bot_p {
        width: 100%;
        height: 4vh;
        background: red;
        display: flex;
        justify-content: center;
        align-items: center;
        span {
          width: 100px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
`;
// 刮胡刀
export const GhudaoCss = styled.div`
  margin-top: 10px;
  .piso {
    display: flex;
    /* height: 320px; */
    margin-top: -47px;
    overflow: auto;
    .box {
      margin: 0 10px;
      flex-shrink: 0;
      width: 32vw;
      /* background: #ddd; */
      .pic {
        /* position: relative; */
        height: 212px;
        display: flex;
        justify-content: center;
        overflow: hidden;
        border-radius: 20px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 0 10px #ddd;
        .sp_pic {
          margin: 0 auto;
          height: 100%;
        }
      }
      .Gwc {
        width: 40px;
        height: 40px;
        display: block;
        margin: 0 auto;
        margin-top: -20px;
      }
      .sp_name {
        /* height: 40px; */
        display: flex;
        flex-direction: column;
        align-items: center;
        p {
          font-size: 12px;
          text-align: center;
          width: 90%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .price {
          color: red;
        }
      }
    }
  }
`;
// 各个模块
export const CuifengjCss = styled.div`
  margin-top: 20px;
  .pic_box {
    height: 222px;
    img {
      width: 100%;
    }
  }
  .sp_list {
    overflow: hidden;
    overflow-x: auto;
    margin-top: -35px;
    .box {
      margin-left: 20px;
      background: #f7f7f7;
      display: flex;
      flex-wrap: nowrap;
      width: auto;
      .pic_box {
        background: #f7f7f7;
        width: 114px;
        height: 114px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-right: 1px solid #ddd;
        padding: 5px;
        img {
          width: 90%;
          height: 90%;
        }
        .gduo{
          height: 200%;
        }
      }
      .name_box {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff;
        p {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          width: 100px;
          font-size: 12px;
          text-align: center;
          margin-top: 5px;
        }
        .sp_price {
          color: red;
          margin-bottom: 10px;
        }
      }
    }
  }
`;
// 底部 大图
export const BigPicCss = styled.div`
width: 100vw;
padding: 10px;
/* overflow: hidden; */
display: flex;
justify-content: center;
align-items: center;
img{
  width: 96%;
}
`
// 底部轮播图
export const BotLunBoCss = styled.div`
padding-bottom: 20px;
padding-top: 10px;
display: flex;
width: 100vw;
overflow: auto;
.box{
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  .pic_box{
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 0 10px #ddd;
  }
  p{
    font-size: 12px;
    margin-top: 5px;
  }
}
`